﻿using System;
using Microsoft.Commerce.Contracts.Messages;
using System.Collections.Generic;

namespace MusicWorks.Service.Helpers
{
    public interface IRequestBroker
    {
        void AddRequest(Microsoft.Commerce.Common.MessageBuilders.CommerceBaseBuilder builder);
        CommerceRequestContext CommerceRequestContext { get; }
        void Execute();
        CommerceRequestContext GetCurrentRequestContext();
        int OperationCount { get; }
        CommerceResponse ProcessRequest(CommerceRequest request);
        IEnumerable<CommerceOperationResponse> Responses { get; }
    }
}
